<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('学员信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                           
                            <li>
                                <label>微信号：</label>
                                <input type="text" name="wxNo"/>
                            </li>
                             <li>
                                <label>QQ号：</label>
                                <input type="text" name="qqNo"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var shoufeimoshiDatas = [[${@dict.getType('CHARGE_TYPE')}]];
        var kemuDatas = [[${@dict.getType('PROJECT_TYPE')}]];
        var prefix = ctx + "system/info";

        $(function() {
            var options = {
                url: prefix + "/listNormal",
                modalName: "学员信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'baomingriqi',
                    title: '报名日期'
                },
                {
                    field: 'wxNickName',
                    title: '微信昵称'
                },
                {
                    field: 'wxNo',
                    title: '微信号'
                },
                {
                    field: 'qqNo',
                    title: 'QQ号'
                },
                {
                    field: 'money',
                    title: '学费'
                },
                {
                    field: 'shoufeimoshi',
                    title: '收费模式',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(shoufeimoshiDatas, value);
                    }
                },
                {
                    field: 'ticheng',
                    title: '提成'
                },
                {
                    field: 'zhuanhua',
                    title: '转化'
                },
                {
                    field: 'zhujiao',
                    title: '助教'
                },
                {
                    field: 'shouhou',
                    title: '售后'
                },
                {
                    field: 'kemu',
                    title: '科目',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(kemuDatas, value);
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>